package mysql

import "gorm.io/gorm"

type House struct {
	gorm.Model
	UserId     int64   `gorm:"type:int(11);not null"`
	Title      string  `gorm:"type:varchar(30);not null"`
	Cont       string  `gorm:"type:varchar(255);not null"`
	Price      float64 `gorm:"type:decimal(10,2);not null"`
	Address    string  `gorm:"type:varchar(50);not null"`
	Area       int64   `gorm:"type:int;not null"`
	HouseImage string  `gorm:"type:varchar(255)"`
}

type UserHouse struct {
	House
	UserName string `gorm:"type:varchar(30);not null"`
}
